const router = require('koa-router')(),
      adminController = require('../controller/admin'),
      loginCheck = require('../middlewares/logincheck')
router.prefix('/admin');
router.get('/create_admin',adminController.createAdmin);    
router.post('/login_action',loginCheck,adminController.loginAction);
router.get('/login_check',adminController.loginCheck);
router.get('/loginout_action',adminController.logoutAction);  
      
module.exports = router
